using System;
using FireStarter.Base.BusinessObjectMerger;
using FireStarterModeller.BO;
using Habanero.Base;
using Habanero.BO;

namespace FireStarterModeller.Logic.MergeBusinessObjects
{
    public class MergeUIGridFilterProp : MergeBO<UIGridFilterProp> 
    {
        public override Func<UIGridFilterProp, bool> MatchBusinessObject(UIGridFilterProp boToFind)
        {
            return foundBO => foundBO != null && boToFind != null && foundBO.PropertyName == boToFind.PropertyName;
        }
    }
    public class MergeUIGridColumnInfo : MergeBO<UIGridColumnInfo>
    {
        public override Func<UIGridColumnInfo, bool> MatchBusinessObject(UIGridColumnInfo boToFind)
        {
            return foundBO => foundBO != null && boToFind != null && foundBO.PropertyName == boToFind.PropertyName;
        }
    }
}